package cn.xjt.config;

import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 内容：
 *
 * @author
 * @date 2020/9/26-15:48
 */
public class MyInterceptor implements HandlerInterceptor {
	//return true:会执行下一个拦截器，放行
	//return false： 不执行下一行，拦截
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
		System.out.println("==============处理之前");
		return true;
	}
}
